using System;

namespace Be.Timvw.Framework.Collections.Generic
{
    internal class DerivedClass : BaseClass, IComparable<DerivedClass>, IEquatable<DerivedClass>
    {
        #region IComparable<DerivedClass> Members

        public int CompareTo(DerivedClass other)
        {
            if(ReferenceEquals(this, other))
            {
                return 0;
            }

            return -1;
        }

        #endregion

        #region IEquatable<DerivedClass> Members

        public bool Equals(DerivedClass other)
        {
            return this.CompareTo(other) == 0;
        }

        #endregion
    }
}